package com.spic.business.ioc.domain;

import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 年合计降雨量IOC对象 ioc_rainfall
 *
 * @author spic
 * @date 2022-04-14
 */
public class IocRainfall extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 年份 */
    @Excel(name = "年份")
    private Integer year;

    /** 降雨量 */
    @Excel(name = "降雨量")
    private Double rainfall;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setYear(Integer year)
    {
        this.year = year;
    }

    public Integer getYear()
    {
        return year;
    }
    public void setRainfall(Double rainfall)
    {
        this.rainfall = rainfall;
    }

    public Double getRainfall()
    {
        return rainfall;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("year", getYear())
            .append("rainfall", getRainfall())
            .toString();
    }
}
